package com.yunkazaixian.mqtt;

import net.sf.json.xml.XMLSerializer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class MqttApplication {
    public static void main(String[] args) {
        SpringApplication.run(MqttApplication.class, args);
        System.out.println("mqtt服务启动成功");
    }

    @Bean
    public XMLSerializer xmlSerializer(){
        XMLSerializer xmlSerializer = new XMLSerializer();
        xmlSerializer.setSkipNamespaces(true);
        return xmlSerializer;
    }

}
